<th:block th:fragment="discuss-data">
    <div class="discuss-list" th:each="discuss:${discusses}">
        <div class="discuss-left">
            <div class="user-logo"><a target="_blank" href="https://www.hasbei.com/user/1316562440498057216"><img th:src="${discuss.userPO.lcon == null ? '/static/image/timg.jpg':discuss.userPO.lcon}"></a></div>
            <div class="user-message">
                <div class="name-time">
                    <a href="https://www.hasbei.com/user/1316562440498057216" target="_blank" class="user-name">[[${discuss.userPO.nick}]]</a>
                    <span class="discuss-time">[[${#dates.format(discuss.dates,'yyyy-MM-dd')}]]</span>
                </div>
                <div class="leave-message">[[${discuss.content}]]</div>
            </div>
        </div>

        <div class="answer-message">
            <div class="discuss-right">
                <div class="discuss-reply">
                    <span class="answer" th:onclick="clickReply([[${'reply'+discuss.id}]])">回复</span>

                    <i class="idotted" th:if="${discuss.reply != 0}"></i>
                    <span th:if="${discuss.reply != 0}" class="answer-num" th:onclick="replys([[${'replylist'+discuss.id}]],[[${discuss.id}]],[[${discuss.nid}]],[[${discuss.reply}]])" th:id="${discuss.id}"><span>[[${discuss.reply}]]条回复</span><img class="arrow-img" src="../static/image/arrow-bttom.png"></span>

                </div>
                <div class="discuss-num">
                    <a href="javascript:;">
                        <span>[[${discuss.likes}]]</span>
                        <img th:onclick="addlike(this,[[${session.logicEmail}]],[[${discuss.nid}]],[[${discuss.id}]])" th:id="${discuss.uid}" class="dianzan" th:src="@{${discuss.islike == null ? '/static/image/like1.jpg':'/static/image/like2.jpg'}}">
                    </a>
                    <!-- <a href="#"><img class="jubao" src="/static/images/jubao.png" alt="有贝口腔网"></a> -->
                </div>
            </div>
            <div class="posi-input" th:id="${'reply'+discuss.id}" style="display: none;">
                <div class="discuss-input">
                    <textarea placeholder="写下您的回复..." class="input" th:id="${'content'+discuss.id}"></textarea>
                    <div class="answer-div">
                        <span class="answer-btn" th:onclick="reply([[${discuss.nid}]],[[${discuss.id}]],[[${'content'+discuss.id}]])" th:id="${discuss.id}">回复</span>
                    </div>
                </div>
            </div>
            <div class="more-answer" th:id="${'replylist'+discuss.id}" style="display:none">
                <!-- 更多在代码里面了 <div class="show-more-ansewer" onclick="moreCommentReplylist(this)" th:id="${commentVO.comment.id}">查看更多回复</div> -->
            </div>

        </div>

    </div>
</th:block>

<th:block th:fragment="reply">
    <div th:each="discuss:${discussList}" class="more-answer-list" th:id="${'replyTolist'+discuss.id}">
        <div class="discuss-left">
            <div class="user-logo"><a target="_blank" href="/user/1285864142745505792"><img th:src="${discuss.userPO.lcon == null ? '/static/image/timg.jpg':discuss.userPO.lcon}"></a></div>
            <div class="user-message">
                <div class="name-time">
                    <a href="/user/1285864142745505792" target="_blank" class="user-name">[[${discuss.userPO.nick}]]</a>
                    <span class="discuss-time">[[${#dates.format(discuss.dates,'yyyy-MM-dd')}]]</span>
                </div>
                <div class="leave-message">[[${discuss.content}]]</div>
            </div>
        </div>
        <div class="discuss-right erji-huifu">
            <div class="discuss-num">
                <a href="javascript:;" style="margin-left: 680px;">
                    <span>[[${discuss.likes}]]</span>
                    <img th:onclick="addlike(this,[[${session.logicEmail}]],[[${discuss.nid}]],[[${discuss.id}]])" th:id="${discuss.uid}" class="dianzan" th:src="@{${discuss.islike == null ? '/static/image/like1.jpg':'/static/image/like2.jpg'}}"></a>
            </div>
        </div>

    </div>
</th:block>